@echo off
pushd %~dp0
if "%NUGET_PACKAGE_STORE%" NEQ "" GOTO continue
echo "Please set environment variable NUGET_PACKAGE_STORE to location of package store on Dropbox!"
echo "--- execution aborted ---"
GOTO end
:continue

echo Did you modify version in nuspec file?
set /p choice="(y/n): "
if "%choice%" neq "y" goto aborted

nuget pack ..\WPF\AppToolkit.WPF\AppToolkit.WPF.Package.nuspec -NoPackageAnalysis -OutputDirectory %temp%
call copy "%temp%\AppToolkit.WPF.*.nupkg" "%NUGET_PACKAGE_STORE%"
call del "%temp%\AppToolkit.WPF.*.nupkg" /Q
GOTO end

:aborted
COLOR 4
echo.
echo Operation aborted!
echo ------------------

:end
popd
@echo on